package com.easylive.entity.dto;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * @Author: yudaxian
 * @Description: TokenUserInfoDto
 * @DateTime: 2024/11/2 21:18
 **/
@Data
// 序列化到redis后，如果这个对象新添加了属性，而redis中原有的对象没有这个属性，会导致反序列化失败，所以需要忽略未知属性，不加上就报错
@JsonIgnoreProperties(ignoreUnknown = true)
public class TokenUserInfoDto implements Serializable {

    @Serial
    private static final long serialVersionUID = -4919032275686519458L;

    private String userId;

    private String avatar;

    private String nickName;

    private String token;

    private Long expireAt;

    private Integer famsCount;
    private Integer currentCoinCount;
    private Integer focusCount;
}
